# -*- coding: utf-8 -*-
# @Time    : 2022/1/11 16:58
# @Author  : 徐翊宸
# @Email   : xyc@163.com
# @File    : page_ssrz.py
# @Software: PyCharm
from selenium.webdriver.common.by import By
from pages.base_page import BasePage

class SsrzPage(BasePage):

    toux_locator = (By.CSS_SELECTOR, "body > div.navbar.navbar-inverse.navbar-fixed-top > div > div > div.nav-collapse.collapse > ul.nav.pull-right > li:nth-child(6) > a > img")
    czrz_submit_locator = (By.LINK_TEXT, "操作日志")
    ssrz_input_locator = (By.CSS_SELECTOR, "#search")
    djss_locator = (By.CSS_SELECTOR, "#searchForm > ul > li:nth-child(4) > button")

    def toux_click(self):
        self.driver.find_element(*self.toux_locator).click()

    def czrz_click(self):
        self.driver.find_element(*self.czrz_submit_locator).click()

    def ssrz1_input(self, ssrz_input):
        self.driver.find_element(*self.ssrz_input_locator).send_keys(ssrz_input)

    def djss_click(self):
        self.driver.find_element(*self.djss_locator).click()









